-- GENERATED SPELL FOR [Crippler] --


function spell0_18689(pUnit, Event) --@Bone Armor,n/a--
pUnit:FullCastSpellOnTarget(38882,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18689', 550, 1)
end

function spell1_18689(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(38621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18689', 571, 1)
end

function spell2_18689(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(39214,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18689', 8251, 1)
end

function Sorts_18689(pUnit, Event)
local choix_sorts_18689 = math.random(0, 2)
if choix_sorts_18689 == 0 then
pUnit:RegisterEvent('spell0_18689', 1, 1)
end
if choix_sorts_18689 == 1 then
pUnit:RegisterEvent('spell1_18689', 1, 1)
end
if choix_sorts_18689 == 2 then
pUnit:RegisterEvent('spell2_18689', 1, 1)
end
end

function mob18689_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18689', math.random(1500, 3000), 1)
end

function mob18689_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18689_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18689_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18689, 1, 'mob18689_Action')
RegisterUnitEvent(18689, 2, 'mob18689_Leave')
RegisterUnitEvent(18689, 3, 'mob18689_Kill')
RegisterUnitEvent(18689, 4, 'mob18689_Die')
